﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;
using EPiServer.Core;

namespace EPiSugar.Markup
{
    /// <summary>
    /// A gateway to commmonly used tags and a placeholder for extension 
    /// methods inspired by ASP.NET MVC. An important 
    /// </summary>
    public class TagGenerator
    {
        public TagGenerator(Page page)
        {
            Page = page;
        }

        public Page Page { get; protected set; }

        public Tag Tag(string tag)
        {
            return new Tag(tag);
        }
        public Tag Tag(string tag, string text)
        {
            return new Tag(tag, text);
        }
    }
}
